package com.springboot.dto;

public class DoctorViewPatient {
    private String logoLink;

    private String patientName;

    public String orderDate;

    public String orderTime;

    private String patientTel;

    public DoctorViewPatient() {
    }

    public DoctorViewPatient(String logoLink, String patientName, String orderDate,
                             String orderTime, String patientTel) {
        this.logoLink = logoLink;
        this.patientName = patientName;
        this.orderDate = orderDate;
        this.orderTime = orderTime;
        this.patientTel = patientTel;
    }


    public String getLogoLink() {
        return logoLink;
    }

    public void setLogoLink(String logoLink) {
        this.logoLink = logoLink;
    }

    public String getPatientName() {
        return patientName;
    }

    public void setPatientName(String patientName) {
        this.patientName = patientName;
    }

    public String getOrderDate() {
        return orderDate;
    }

    public void setOrderDate(String orderDate) {
        this.orderDate = orderDate;
    }

    public String getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(String orderTime) {
        this.orderTime = orderTime;
    }

    public String getPatientTel() {
        return patientTel;
    }

    public void setPatientTel(String patientTel) {
        this.patientTel = patientTel;
    }

    //封装Json格式字符串
    @Override
    public String toString() {
        if(logoLink!=null)
        {
            logoLink = logoLink.replaceAll("", "");
        }
        return "{" +
                "\"logoLink\":\"" + logoLink + '\"' +
                ", \"patientName\":\"" + patientName + '\"' +
                ", \"orderDate\":\"" + orderDate + '\"' +
                ", \"orderTime\":\"" + orderTime + '\"' +
                ", \"patientTel\":\""+ patientTel + '\"' +
                '}';
    }
}
